# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

import scrapy


class SpiderdemoItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    pass


class WeiBoArticleItem(scrapy.Item):
    id = scrapy.Field()  # 用户id
    screen_name = scrapy.Field()  # 用户名
    created_at = scrapy.Field()  # 发表时间
    source = scrapy.Field()  # 来源设备
    text = scrapy.Field()  # 微博内容
    mid = scrapy.Field()  # 微博id
    attitudes_count = scrapy.Field()  # 点赞数
    comments_count = scrapy.Field()  # 评论数
    reposts_count = scrapy.Field()  # 转发数


class UserItem(scrapy.Item):
    id = scrapy.Field()  # 用户id
    screen_name = scrapy.Field()  # 用户名
    followers_count = scrapy.Field()  # 粉丝数量
    follow_count = scrapy.Field()  # 关注数量
    gender = scrapy.Field()  # 性别


class CommentItem(scrapy.Item):
    mid = scrapy.Field()  # 微博id
    user_id = scrapy.Field()  # 用户id
    comment_id = scrapy.Field()  # 评论id
    text = scrapy.Field()  # 评论内容
    created_at = scrapy.Field()  # 评论时间


class CarItem(scrapy.Item):
    title = scrapy.Field()
    best_price = scrapy.Field()  # 一口价
    best_first_pay = scrapy.Field()  # 首付价
    best_road_haul = scrapy.Field()  # 公里数
    buyOutPrice = scrapy.Field()  # 收车价
